cssparser: Make _gtk_css_parser_try a macro
authorTimm Bäder <mail@baedert.org>
Sat, 19 Jan 2019 17:32:00 +0000 (18:32 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 29 Jan 2019 04:03:26 +0000 (05:03 +0100)
commit7f4b7c48e87313dc1be4f4895e182a58e8c55af7
treee78560005c4193af9df72bfc490e91d63d95d89a
parentdf1f036a95c41a8aa867e92c8fb4d5b7e566223b
cssparser: Make _gtk_css_parser_try a macro

We almost always pass a constant string to it, so use a macro and try to
trick the compiler into evaluating the 2(!) strlen() calls at compile
time.
gtk/gtkcssparser.c
gtk/gtkcssparserprivate.h